package com.innjia.sys.service.impl;

        import com.innjia.base.utils.Utils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.innjia.sys.dao.SignRequestInfoDao;
import com.innjia.sys.entity.SignRequestInfoEntity;
import com.innjia.sys.service.SignRequestInfoService;



@Service("signRequestInfoService")
public class SignRequestInfoServiceImpl implements SignRequestInfoService {
	@Autowired
	private SignRequestInfoDao signRequestInfoDao;
	
	@Override
	public SignRequestInfoEntity queryObject(String id){
		return signRequestInfoDao.queryObject(id);
	}
	
	@Override
	public List<SignRequestInfoEntity> queryList(Map<String, Object> map){
		return signRequestInfoDao.queryList(map);
	}

    @Override
    public List<SignRequestInfoEntity> queryListByBean(SignRequestInfoEntity entity) {
        return signRequestInfoDao.queryListByBean(entity);
    }
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return signRequestInfoDao.queryTotal(map);
	}
	
	@Override
	public int save(SignRequestInfoEntity signRequestInfo){
		signRequestInfo.setId(Utils.uuid());
		return signRequestInfoDao.save(signRequestInfo);
	}
	
	@Override
	public int update(SignRequestInfoEntity signRequestInfo){
        return signRequestInfoDao.update(signRequestInfo);
	}
	
	@Override
	public int delete(String id){
        return signRequestInfoDao.delete(id);
	}
	
	@Override
	public int deleteBatch(String[] ids){
        return signRequestInfoDao.deleteBatch(ids);
	}
	
}
